package fr.vvins.core.biz.exception;

public class BizException extends Exception {

	private static final long serialVersionUID = 5212823202020280510L;

	private String code;
	
	private String message;
	
	public BizException(String code, String message){
		super(message);
		setCode(code);
		setMessage(message);
	}
	

	public BizException(String code2, Throwable e) {
		super(e.getMessage(),e);
		setCode(code);
		setMessage(message);
	}


	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	@Override
	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
}
